package com.zlp.clazz;

/**
 * 本质上是一个final的类，且属性为该final类的实例
 */
public enum Sex {
    MALE("男",0),
    FEMALE("女",1);
    public String name;
    public int type;
    Sex(String name,int type){
        this.name = name;
        this.type = type;
    }

    public static void main(String[] args) {
        System.out.println(Sex.MALE.getDeclaringClass());
    }
}
